//
//  PicClassCollViewCell.m
//  OpenEyes
//
//  Created by dllo on 15/9/11.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "PicClassCollViewCell.h"

@implementation PicClassCollViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backImage = [[UIImageView alloc] initWithFrame:self.contentView.bounds];
        [self.contentView addSubview:self.backImage];
        
        
        UIView *blackView = [[UIView alloc] initWithFrame:self.backImage.bounds];
        blackView.backgroundColor = [UIColor colorWithRed:0.220 green:0.220 blue:0.221 alpha:1.000];
        blackView.alpha = 0.3;
        [self.backImage addSubview:blackView];
        
        self.titleLabel = [[UILabel alloc] initWithFrame:self.contentView.bounds];
        self.titleLabel.textColor = [UIColor whiteColor];
        self.titleLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:17];
        self.titleLabel.backgroundColor = [UIColor clearColor];
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        [self.backImage addSubview:self.titleLabel];
    }
    return self;
}


@end
